﻿
using B.S.DataBase.MyProject.ErrorCode;
using MediatR;
using System.ComponentModel.DataAnnotations;

namespace D.Traceability.Write.API.APPlicant.Command.SlaughterCommand
{
    /// <summary>
    /// 添加/修改屠宰信息-命令
    /// </summary>
    public class AddUpdateSlaughterCommand : IRequest<APIResult<string>>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int? SlaughterId { get; set; }

        /// <summary>
        /// 屠宰批次
        /// </summary>
        public string? SlaughterBatch { get; set; }
        /// <summary>
        /// 到厂均重（公斤）
        /// </summary>
        public decimal? Kg { get; set; }
        /// <summary>
        /// 到厂时间
        /// </summary>
        public DateTime? ArriveTime { get; set; }
        /// <summary>
        /// 屠宰时间
        /// </summary>
        public DateTime? SlaughterTime { get; set; }
        /// <summary>
        /// 溯源生产批次  
        /// </summary>
        public string? TraceaBatch { get; set; }
        /// <summary>
        /// 逻辑删除 false 未删除  true 删除
        /// </summary>
        public bool TraceaIsDelete { get; set; }

    }
}
